cmake_minimum_required(VERSION 3.16)
project(c-basics-summary C)

set(CMAKE_C_STANDARD 99)

add_executable(c_basic basic.c)
add_executable(c_memory memory.c)
add_executable(c_string string.c)
add_executable(c_struct struct.c)
add_executable(c_pretreatment pretreatment.c pretreatment.h other.c)
add_executable(c_pointer pointer.c)
add_executable(c_function function.c)
add_executable(c_test test.c)
add_executable(c_datatype datatype.c)
add_executable(c_io io.c)
add_executable(c_expression expression.c)
add_executable(c_flow_control flow_control.c)
add_executable(c_array array.c)
add_executable(c_union union.c)
add_executable(c_enum enum.c)
add_executable(c_variable variable.c)
add_executable(c_undefined_behaviour undefined_behaviour.c)

add_library(hello_world SHARED dll.c)
add_library(jni SHARED jni/jni.c)
